import request from '@/utils/request'

// 查询预订信息列表
export function listReserveMain(query) {
  return request({
    url: '/manage/reserveMain/list',
    method: 'get',
    params: query
  })
}

// 查询预订信息详细
export function getReserveMain(reserveId) {
  return request({
    url: '/manage/reserveMain/' + reserveId,
    method: 'get'
  })
}

// 新增预订信息
export function addReserveMain(data) {
  return request({
    url: '/manage/reserveMain',
    method: 'post',
    data: data
  })
}

// 修改预订信息
export function updateReserveMain(data) {
  return request({
    url: '/manage/reserveMain',
    method: 'put',
    data: data
  })
}

// 删除预订信息
export function delReserveMain(reserveId) {
  return request({
    url: '/manage/reserveMain/' + reserveId,
    method: 'delete'
  })
}
